package com.zhongkai.encryptDES;

public class EncryptDEStest {

	/**
	 * 
	 * @author lengxue
	 * @date 13 Jul 2012 09:04:34
	 * @param args
	 * @note
	 */
	public static void main( String[] args ) throws Exception {
		EncryptDES encryptDES = new EncryptDES( );
		String message = "郭德刚相声全集，使用DES";
		byte [] encontent = encryptDES.Encrypt( message.getBytes("UTF8") );
		byte [] decontent = encryptDES.Decrypt( encontent );
		System.out.println("明文是:" + message);
		System.out.println("加密后:" + new String( encontent ));
		System.out.println("解密后：" + new String( decontent ));
	}

}
